package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.domain.BuryingPointEntity;
import com.ruoyi.system.service.BuryingPointService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Slf4j
@RestController
@Tag(name = "埋点")
@RequestMapping("/buryingPoint")
public class BuryingPointController {

    @Resource
    private BuryingPointService buryingPointService;

    @Operation(summary = "添加埋点")
    @PostMapping("/add")
    public R<Void> add(@RequestBody BuryingPointEntity buryingPointEntity) {
        buryingPointService.add(buryingPointEntity);
        return R.ok();
    }
}
